package o;

import java.lang.reflect.InvocationTargetException;

public final class dol implements dog {
    private static dol ˋ;
    private static final Object ˎ = new Object();

    private dol() {
    }

    public static dol ˎ() {
        dol o_dol;
        synchronized (ˎ) {
            if (ˋ == null) {
                ˋ = new dol();
            }
            o_dol = ˋ;
        }
        return o_dol;
    }

    private static Object ˏ() {
        Object obj = null;
        try {
            Class cls = Class.forName("com.mediatek.telephony.TelephonyManagerEx");
            obj = cls.getDeclaredMethod("getDefault", new Class[0]).invoke(cls, new Object[0]);
        } catch (ClassNotFoundException e) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong " + e.toString());
        } catch (SecurityException e2) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong ");
        } catch (NoSuchMethodException e3) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong " + e3.toString());
        } catch (IllegalAccessException e4) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong " + e4.toString());
        } catch (IllegalArgumentException e5) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong " + e5.toString());
        } catch (InvocationTargetException e6) {
            Logger.e("mutiCardMTKImpl", " getDefaultTelephonyManagerEx wrong " + e6.toString());
        }
        return obj;
    }

    public int ॱ() {
        Object ˏ = ˏ();
        if (ˏ == null) {
            return 0;
        }
        try {
            return ((Integer) ˏ.getClass().getMethod("getPreferredDataSubscription", new Class[0]).invoke(ˏ, new Object[0])).intValue();
        } catch (NoSuchMethodException e) {
            Logger.e("mutiCardMTKImpl", " getPreferredDataSubscription wrong " + e.toString());
            return -1;
        } catch (InvocationTargetException e2) {
            Logger.e("mutiCardMTKImpl", " getPreferredDataSubscription wrong " + e2.toString());
            return -1;
        } catch (IllegalAccessException e3) {
            Logger.e("mutiCardMTKImpl", " getPreferredDataSubscription wrong " + e3.toString());
            return -1;
        }
    }
}
